home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_07
/
plauger
/
issync.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-05-03
|
266 b
|
17 lines
// issync -- istream::sync()
#include <istream>
int istream::sync()
{ // synchronize buffer
if (!good())
return (EOF);
else if (rdbuf()->pubsync() == EOF)
{ // note sync failure
setstate(badbit);
return (EOF);
}
else
return (0);
}